money = 10000

for i in range(1,21):
    import random
    num = random.randint(1, 10)

    if num < 5:
        print(f"员工{i}，绩效分{num}，低于5，不发工资，下一位。")
        continue
    if money >= 1000:
        money -= 1000
        print(f"向员工{i}发放工资1000元，账号余额还剩余{money}元")
    else:
        print(f"当前{money}余额，不足发工资，下月再来吧")
        break

